package day03;

import java.util.Scanner;

public class IfDemo03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请录入小明的考试分数：");
        int score = sc.nextInt();
        if (score >= 0 && score <= 100) {
            if (score > 95 && score <= 100) {
                System.out.println("送自行车");
            } else if (score > 80 && score <= 95) {
                System.out.println("送变形金刚");
            } else {
                System.out.println("打一顿");
            }
        } else {
            System.out.println("录入的分数不合法");
        }
    }
}
